# @Version        : 1.0
# @Update Time    : 2025/2/24 20:05
# @File           : common_typing.py
# @IDE            : PyCharm
# @Desc           : 文件描述信息
from typing import TypeVar, Annotated
from fastapi import Depends
from pydantic import BaseModel
from sqlalchemy.ext.asyncio import AsyncSession
from src.db.db_database import alchemy, db_manager
from src.core.base.orm.orm import AbstractORMModel

ORMModel = TypeVar("ORMModel", bound=AbstractORMModel)
SchemaModel = TypeVar("SchemaModel", bound=BaseModel)
# 数据库会话
DatabaseSession = Annotated[AsyncSession, Depends(db_manager.get_session_dependency())]
